#ifndef MENYSCENE_H
#define MENYSCENE_H

#endif // MENYSCENE_H

#pragma once

#include<QGraphicsScene>
#include<QPushButton>
#include<QGraphicsProxyWidget>
#include<QTransform>
#include<QObject>
#include<QRectF>
#include<QLineEdit>
#include<QLabel>

#include"BackgroundImage.h"
#include"GameField.h"

class MenyScene : public QGraphicsScene
{
 Q_OBJECT
public:
    MenyScene(int id, QRect &r);
    ~MenyScene();
    void paint();

    void advance();
    int GetCountItems();
    QPushButton* GetButtom(int id);
    QLineEdit* GetEdit(int id);
    QLabel* GetLabel(int id);
    int GetLabelCount();
    void keyPressEvent(QKeyEvent *event);
    QLabel* GetPlayerListLabel();

public slots:

signals:
    void signalLineEdit(QKeyEvent *event);
    void signalPresEscKey();

    void signalPresKey(QKeyEvent *event);

private:
   /* QTransform createButtom(QString s);*/
   std::vector<QPushButton*> Buttons;
   std::vector<QLineEdit*> Edits;
   std::vector<QLabel*> Labels;
   int items;
};


